d6710a2a7d7b6ef73f4fa33418fb46f3f1baa461,java/org/apache/coyote/http11/upgrade/UpgradeAprProcessor.java,UpgradeAprProcessor,read,#boolean#number[]#number#number#,75
Before Change
public int read(boolean block, byte[] bytes, int off, int len)
throws IOException {
// TODO support non-blocking reads
return Socket.recv(socket, bytes, off, len);
}
}
After Change
Socket.optSet(socket, Socket.APR_SO_NONBLOCK, -1);
}
try {
int result = Socket.recv(socket, bytes, off, len);
if (result > 0) {
return result;
} else if (-result == Status.EAGAIN) {
return 0;